package cn.ipenta.app.controller.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author ipenta
 * @ClassName: ss
 * @Description: TODO
 * @date 2017-09-21 下午4:23
 */
public class CirculationVo {

	@ApiModelProperty("本次交易 ID，10位单位编码+8位日期+4位流水号")
	@JSONField(name="ORDER_NO")
	@NotBlank(message = "必须填写")
	private String orderNo;

	@ApiModelProperty(value = "交易类型",example="01")
	@JSONField(name="ORDER_TYPE")
	@NotBlank(message = "必须填写")
	private String orderType;

	@ApiModelProperty(value = "交易时间，格式如YYYY-MM-DD hh:mm:ss",example="2017-09-20 09:02:33")
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
	@JSONField(name="ORDER_DATE")
	@NotNull(message = "必须填写")
	private Date orderDate;

	@ApiModelProperty("疫苗标识码")
	@JSONField(name="VACCINE_ID")
	@NotBlank(message = "必须填写")
	private String vaccineId;

	@ApiModelProperty(value = "疫苗编码",example="0000")
	@JSONField(name="VACCINE_CODE")
	@NotBlank(message = "必须填写")
	private String vaccineCode;

	@ApiModelProperty(value = "疫苗生产单位，全国统一代码",example = "01")
	@JSONField(name="VACCINE_COMP")
	@NotBlank(message = "必须填写")
	private String vaccineComp;

	@ApiModelProperty("疫苗批号")
	@JSONField(name="VACCINE_BATCH_CODE")
	@NotBlank(message = "必须填写")
	private String vaccineBatchCode;

	@ApiModelProperty("疫苗发放机构代码")
	@JSONField(name="SUPPLY_ORGAN_CODE")
	@NotBlank(message = "必须填写")
	private String supplyOrganCode;

	@ApiModelProperty("疫苗接收机构代码")
	@JSONField(name="RECEIVE_ORGAN_CODE")
	@NotBlank(message = "必须填写")
	private String receiveOrganCode;

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getOrderType() {
		return orderType;
	}

	public void setOrderType(String orderType) {
		this.orderType = orderType;
	}

	public Date getOrderDate() {
		return orderDate;
	}

	public void setOrderDate(Date orderDate) {
		this.orderDate = orderDate;
	}

	public String getVaccineId() {
		return vaccineId;
	}

	public void setVaccineId(String vaccineId) {
		this.vaccineId = vaccineId;
	}

	public String getVaccineCode() {
		return vaccineCode;
	}

	public void setVaccineCode(String vaccineCode) {
		this.vaccineCode = vaccineCode;
	}

	public String getVaccineComp() {
		return vaccineComp;
	}

	public void setVaccineComp(String vaccineComp) {
		this.vaccineComp = vaccineComp;
	}

	public String getVaccineBatchCode() {
		return vaccineBatchCode;
	}

	public void setVaccineBatchCode(String vaccineBatchCode) {
		this.vaccineBatchCode = vaccineBatchCode;
	}

	public String getSupplyOrganCode() {
		return supplyOrganCode;
	}

	public void setSupplyOrganCode(String supplyOrganCode) {
		this.supplyOrganCode = supplyOrganCode;
	}

	public String getReceiveOrganCode() {
		return receiveOrganCode;
	}

	public void setReceiveOrganCode(String receiveOrganCode) {
		this.receiveOrganCode = receiveOrganCode;
	}
}
